#include <stdio.h>

int main()
{
	int n = 0;
	printf("请输入n的值");
	scanf("%d",&n);
	int prev=1,curr=0,next;

	for(int i=0; i<n; i++)
	{
		next = prev + curr;
		printf("%d ",next);
		prev = curr;
		curr = next;
	}
}
